package com.tianji.remark.service;

import com.tianji.remark.domain.dto.LikeRecordFormDTO;
import com.tianji.remark.domain.po.LikedRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 点赞记录表 服务类
 * </p>
 *
 * @author yang
 * @since 2024-06-28
 */
public interface ILikedRecordService extends IService<LikedRecord> {

    /**
     * 点赞和取消
     * @param form
     */
    void likeRecord(LikeRecordFormDTO form);

    /**
     * 查询点赞状态
     * @param bizIds
     * @return
     */
    Set<Long> likeRecordList(List<Long> bizIds);

    /**
     * 读取点赞次数
     * @param bizType
     * @param maxBizSize
     */
    void readLikedTimesAndSendMessage(String bizType, int maxBizSize);
}
